const routes = [
    //一级路由
    //"首页，爆爆团，订单，我的"   页面路由
    {
        path: '/chushi',
        name: 'chushi',
        component: () => import('../views/chushi.vue'),
        children: [
            {
                path: '/chushi/liebiao',
                name: 'liebiao',
                component: () => import('../views/chushi/liebiao.vue'),
            },
            {
                path: '/chushi/Hear',
                name: 'Hear',
                component: () => import('../views/chushi/Hear.vue'),
            },
            {
                path: '/chushi/dingdan',
                name: 'dingdan',
                component: () => import('../views/chushi/dingdan.vue'),
            },
            {
                path: '/chushi/my',
                name: 'my',
                component: () => import('../views/chushi/my.vue'),
            }
        ],
    },
    //初始注册页面
    {
        path: '/zhuce',
        name: 'zhuce',
        component: () => import('../views/zhuce.vue'),
    },
    //初始登录页面
    {
        path: '/denglu',
        name: 'denglu',
        component: () => import('../views/denglu.vue'),
    },
    //详情页面
    {
        path: '/xiangqing/:id',
        name: 'xiangqing',
        component: () => import('../views/xiangqing.vue'),
    },
     //重定向到初始
    {
        path: '/',
        redirect: '/zhuce' //重定向到初始
    },
    //地址访问错误时跳转到此地址
    {
        path: '*', // * 表示匹配任何路由(所有路由)
        component: () => import('../views/lujingcuowu.vue')
    }
]
export default routes;